package com.zhentao.controller;

import com.zhentao.model.common.dtos.PermissionResult;
import com.zhentao.model.pojo.user.yichang.ChargeUserExpeciton;
import com.zhentao.service.SysUserService;
import com.zhentao.user.ChargeUserFeignApi;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/user/info")
public class AdminExceptionController {

    @Resource
    private SysUserService sysUserService;
    @Resource
    private ChargeUserFeignApi chargeUserFeignApi;


    @GetMapping("/getExceptionList")
    public PermissionResult getExceptionList() {
        return  sysUserService.getExceptionList();
    }

    @PostMapping("/updateException")
    public PermissionResult updateException(@RequestBody(required = false) ChargeUserExpeciton exception) {
        return sysUserService.updateException(exception);
    }
}
